//student
function Student(name, age, sex) {
  this.name = name;
  this.age = age;
  this.sex = sex;
}

Student.prototype.eating = function () {
  console.log(`${this.name}eating`);
};

Student.prototype.running = function () {
  console.log(`${this.name}running`);
};

Student.prototype.studying = function () {
  console.log(`${this.name}studying`);
};

//Teacher
function Teacher(name, age, title) {
  this.name = name;
  this.age = age;
  this.title = title;
}
Teacher.prototype.teach = function () {
  console.log(`${this.name}teach`);
};
Teacher.prototype.eating = function () {
  console.log(`${this.name}eating`);
};
Teacher.prototype.running = function () {
  console.log(`${this.name}running`);
};
